package day4;

/**
 * @author oldliu
 * @since 1.0
 */
public class ForS {
    public static void main(String[] args) {
        int count=0;
        int sum=0;
        //严重错误
        for (int i = 1; i <= 1000 && i%7==0; i++) {
            System.out.println(i);
            count++;
            sum+=i;
        }
        System.out.println("个数是"+count+"个，和是："+sum);
    }
}
